﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFBasic.Entities
{
    public class Standard : BaseEntity
    {
        public Standard()
        {

        }

        public int StandardId { get; set; }
        public string StandardName { get; set; }
        public string Description { get; set; }
        public int Type { get; set; }

        // Convention, collection navigation properity
        public ICollection<Student> Students { get; set; }

        // For test update entity graph
        public ICollection<Teacher> Teachers { get; set; }
    }

    //public class Standard : BaseEntity
    //{
    //    public Standard()
    //    {

    //    }

    //    public int StandardId { get; set; }
    //    public string StandardName { get; set; }

    //    [InverseProperty("CurrentStandard")]
    //    public ICollection<Student> CurrentStudents { get; set; }
    //    [InverseProperty("PreviousStandard")]
    //    public ICollection<Student> PreviousStudents { get; set; }
    //}
}
